package com.nuanshui.heatedloan.userinfo.vo;


import java.io.Serializable;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;

public class UserVo implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;

	private String nick;

	@JsonIgnore
	private String avatar;

	// 纬度坐标
	@JsonIgnore
	private String latitude;
	
	private String avatarUrl;
	// 经度坐标
	@JsonIgnore
	private String longitude;
	@JsonIgnore
	private String targetId;
	@JsonIgnore
	private String sourceId;
	private String location;//地理位置
	@SuppressWarnings("unused")
	private Integer verified;//是否认证
	
	private Integer supportCount;//点赞数
	private Long fansCount;//粉丝数
	private Double score;//用户积分
	
	private Integer level;//等级
	private Long praiseCount;//点赞数
	private Boolean interested;
	
	public Integer verifiedType;
	@JsonIgnore
	@JSONField(serialize = false)
	private  Long auth;	
	
	public Long getAuth() {
		return auth;
	}

	public void setAuth(Long auth) {
		this.auth = auth;
	}

	public Integer getVerifiedType() {
		return verifiedType;
	}

	public void setVerifiedType(Integer verifiedType) {
		this.verifiedType = verifiedType;
	}

	public void setInterested(boolean interested) {
		this.interested = interested;
	}

	public Long getPraiseCount() {
		return praiseCount;
	}

	public void setPraiseCount(Long praiseCount) {
		this.praiseCount = praiseCount;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Double getScore() {
		return score;
	}

	public void setScore(Double score) {
		this.score = score;
	}


	public Long getFansCount() {
		return fansCount;
	}

	public void setFansCount(Long fansCount) {
		this.fansCount = fansCount;
	}

	public Integer getSupportCount() {
		return supportCount;
	}

	public void setSupportCount(Integer supportCount) {
		this.supportCount = supportCount;
	}

	public boolean getVerified() {
		if(verifiedType == null ||verifiedType == 0) return false;
		return true;
	}

	public void setVerified(Integer verified) {
		this.verified = verified;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNick() {
		return nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public void setTargetId(String targetId) {
		this.targetId = targetId;
	}


	public void setSourceId(String sourceId) {
		this.sourceId = sourceId;
	}
	public boolean getInterested() {
		if(targetId != null) return true;
		if(interested != null) return interested;
		return false;
	}

	public boolean getBeInterested() {
		return sourceId != null;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getLocation() {
		if(location == null) return "未知地点";
		return location;
	}

	public String getAvatarUrl() {
		return avatarUrl;
	}

	public void setAvatarUrl(String avatarUrl) {
		this.avatarUrl = avatarUrl;
	}

	
	
	
	
	
	
	
	
}
